* {
  margin: 0;
  padding: 0;
}
:root {
  --color-gray-light: #d8dcd6;
  --color-gray: #d3d7d0;
  --color-gray-dark: #767b78;
  --color-orange: #e38c63;
  --color-mint: #84c2b3;
  --color-mint-light: #9bc5bb;
  --color-purple: #bdbdcb;
}
body {
  display: flex;
  width: 100vw;
  height: 100vh;
  background: var(--color-gray-light);
  /* 居中 */
  justify-content: center;
  align-items: center;
}
.clock {
  position: relative;
  width: 300px;
  height: 300px;
  padding: 20px;
  border: 20px solid var(--color-gray);
  border-radius: 50%;
  background: var(--color-gray-light);
  /* 立体效果 */
  box-shadow: 5px -5px 6px rgba(255, 255, 255, 0.5),
    -5px 5px 8px rgba(50, 50, 50, 0.1), inset -3px 3px 5px rgba(50, 50, 50, 0.1),
    inset 2px -2px 1px rgba(50, 50, 50, 0.05);
}
.outer {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.outer::before,
.outer::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 6px;
  height: 100%;
  margin-left: -3px;
  background: var(--color-mint);
}
.outer::after {
  transform: rotate(90deg);
}
.marking {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  margin-left: -2px;
  background: var(--color-mint-light);
}
.marking:nth-child(1) {
  transform: rotate(30deg);
}
.marking:nth-child(2) {
  transform: rotate(60deg);
}
.marking:nth-child(3) {
  transform: rotate(120deg);
}
.marking:nth-child(4) {
  transform: rotate(150deg);
}
.inner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  margin-left: -135px;
  margin-top: -135px;
  background: var(--color-gray-light);
}
.hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  border-radius: 3px;
  background: var(--color-orange);
  transform-origin: 50% 100%;
}
#hour {
  width: 6px;
  height: 30%;
  margin-left: -3px;
}
#minute {
  width: 4px;
  height: 40%;
  margin-left: -2px;
}
#second {
  width: 2px;
  height: 45%;
  margin-left: -1px;
  background: var(--color-gray-dark);
}
.inner::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: var(--color-orange);
}
